import React, { Component } from 'react';
import { Layout } from "antd";
import { Switch, Route } from "react-router-dom";
import Scenes from './scenes';
import Articles from './articles';
import Goods from './goods';
import Users from './users';
import CreateScene from './create_scene';

const {Content: AntContent} = Layout;


class Content extends Component {
  render() {
    return (
      <AntContent>
        <Switch>
          <Route path="/scenes/:sceneId" component={CreateScene} />
          <Route path="/users" component={Users} />
          <Route path="/scenes" component={Scenes} />
          <Route path="/articles" component={Articles} />
          <Route path="/goods" component={Goods} />
        </Switch>
      </AntContent>
    );
  }
}

export default Content;
